﻿<UserControl x:Class="QUT.Bio.Util.PopupWindow"
			 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
			 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
			 xmlns:popup="clr-namespace:QUT.Bio.Util"
			 Margin="0 0 0 0">
	<Grid>

		<Grid.RowDefinitions>
			<RowDefinition Height="2" />
			<RowDefinition Height="24" />
			<RowDefinition Height="1" />
			<RowDefinition Height="*" />
			<RowDefinition Height="24" />
			<RowDefinition Height="2" />
		</Grid.RowDefinitions>

		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="2" />
			<ColumnDefinition Width="24" />
			<ColumnDefinition Width="*" />
			<ColumnDefinition Width="24" />
			<ColumnDefinition Width="2" />
		</Grid.ColumnDefinitions>

		<Rectangle Name="dropShadow" 
				   Grid.Column="0"
				   Grid.Row="0"
				   Grid.ColumnSpan="5"
				   Grid.RowSpan="6"
				   HorizontalAlignment="Stretch"
				   VerticalAlignment="Stretch"
				   Fill="Black"
				   Opacity="0.3"
		>
			<Rectangle.RenderTransform>
				<TranslateTransform x:Name="dropShadowTranslation" X="5" Y="5" />
			</Rectangle.RenderTransform>
		</Rectangle>

		<Rectangle Name="rc"
				   Grid.Row="3"
				   Grid.Column="1"
				   Grid.RowSpan="2"
				   Grid.ColumnSpan="3"
				   Fill="White"/>
		
		<Rectangle Name="r0"
				   Grid.Row="0"
				   Grid.Column="0"
				   Grid.RowSpan="2"
				   HorizontalAlignment="Stretch"
				   VerticalAlignment="Stretch"
				   Fill="Silver"
				   Cursor="SizeWE" />

		<Rectangle Name="r1"
				   Grid.Row="0"
				   Grid.Column="1"
				   Grid.ColumnSpan="1"
				   HorizontalAlignment="Stretch"
				   VerticalAlignment="Stretch"
				   Fill="Silver"
				   Cursor="SizeNS" />

		<Rectangle Name="r2"
				   Grid.Row="0"
				   Grid.Column="2"
				   Grid.RowSpan="1"
				   HorizontalAlignment="Stretch"
				   VerticalAlignment="Stretch"
				   Fill="Silver"
				   Cursor="SizeNS" />

		<Rectangle Name="r3"
				   Grid.Row="0"
				   Grid.Column="3"
				   Grid.ColumnSpan="1"
				   HorizontalAlignment="Stretch"
				   VerticalAlignment="Stretch"
				   Fill="Silver"
				   Cursor="SizeNS" />

		<Rectangle Name="r4"
				   Grid.Row="0"
				   Grid.Column="4"
				   Grid.RowSpan="2"
				   HorizontalAlignment="Stretch"
				   VerticalAlignment="Stretch"
				   Fill="Silver"
				   Cursor="SizeWE" />

		<Rectangle Name="r5"
				   Grid.Row="2"
				   Grid.Column="0"
				   Grid.RowSpan="2"
				   HorizontalAlignment="Stretch"
				   VerticalAlignment="Stretch"
				   Fill="Silver"
				   Cursor="SizeWE" />

		<Rectangle Name="r6"
				   Grid.Row="2"
				   Grid.Column="4"
				   Grid.RowSpan="2"
				   HorizontalAlignment="Stretch"
				   VerticalAlignment="Stretch"
				   Fill="Silver"
				   Cursor="SizeWE" />

		<Rectangle Name="r7"
				   Grid.Row="4"
				   Grid.Column="0"
				   Grid.RowSpan="2"
				   HorizontalAlignment="Stretch"
				   VerticalAlignment="Stretch"
				   Fill="Silver"
				   Cursor="SizeWE" />

		<Rectangle Name="r8"
				   Grid.Row="5"
				   Grid.Column="1"
				   Grid.ColumnSpan="1"
				   HorizontalAlignment="Stretch"
				   VerticalAlignment="Stretch"
				   Fill="Silver"
				   Cursor="SizeNS" />

		<Rectangle Name="r9"
				   Grid.Row="5"
				   Grid.Column="2"
				   Grid.ColumnSpan="1"
				   HorizontalAlignment="Stretch"
				   VerticalAlignment="Stretch"
				   Fill="Silver"
				   Cursor="SizeNS" />

		<Rectangle Name="r10"
				   Grid.Row="5"
				   Grid.Column="3"
				   Grid.ColumnSpan="1"
				   HorizontalAlignment="Stretch"
				   VerticalAlignment="Stretch"
				   Fill="Silver"
				   Cursor="SizeNS" />

		<Rectangle Name="r11"
				   Grid.Row="4"
				   Grid.Column="4"
				   Grid.RowSpan="2"
				   HorizontalAlignment="Stretch"
				   VerticalAlignment="Stretch"
				   Fill="Silver"
				   Cursor="SizeWE" />

		<popup:TitleBar x:Name="titleBar"
						VerticalAlignment="Stretch"
						HorizontalAlignment="Stretch"
						Grid.Row="1"
						Grid.Column="1"
						Grid.ColumnSpan="3" />

		<Canvas HorizontalAlignment="Stretch"
				VerticalAlignment="Stretch"
				Background="Silver"
				Grid.Row="2"
				Grid.RowSpan="1"
				Grid.Column="1"
				Grid.ColumnSpan="3" />

		<popup:BorderLayout x:Name="content"
							Grid.Row="3"
							Grid.Column="1"
							Grid.RowSpan="2"
							Grid.ColumnSpan="3" />
							
		<Grid Name="zombie"></Grid>
	</Grid>
</UserControl>
